/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package decorationstrings;

import java.io.IOException;
import java.io.Writer;

/**
 *
 * @author usuario08
 */
public class DecorationShow {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException {
        
        
        
        
        
        String testString = "This tEXt is going to BE CHAnged by deCOrator ";
        Writer out = new ConsoleWriter();
        out.write (testString);//text without decoration
        System.out.println();
        Writer decorLower = new LowerCaseDecorator(out);
        decorLower.write(testString);
        System.out.println();
        Writer decorUpper = new UpperCaseDecorator(out);
        decorUpper.write(testString);
        System.out.println();
        Writer decorRandom= new RandomCaseDecorator(out);
        decorRandom.write(testString);
//        Writer decorcComa = new ComaDecorator(out);
//        decorComa.write(testString)
    }
}
